/*
 * @author: sanbao
 * @Date: 2022-07-26 16:25:31
 */
interface categoriesInt {
    cat_deleted: boolean
    cat_id: number
    cat_level: number
    cat_name: string
    cat_pid: number
    children?: childrenInt[]
}
interface tableDataInt {
    attr_id: number
    attr_name: string
    attr_sel: string
    attr_vals: string
    attr_write: string
    cat_id: number
    delete_time: null
}
interface childrenInt {
    cat_deleted: boolean
    cat_id: number
    cat_level: number
    cat_name: string
    cat_pid: number
}
// tablist
type tablistInt = {
    type?: string,
    label?: string,
    prop?: string,
    action?: string
    list?: [{
        type: string
        action: string
        name: string
    },
        {
            type: string
            action: string
            name: string
        }]
}
export class ParamsData {
    options: categoriesInt[] = []
    tableData: tableDataInt[] = []
    tablelist: tablistInt[] = [
        {
            type: "paramsexpand",
            action: "deletrights",
        },
        {
            label: '#',
            type: 'index'
        },
        {
            label: '参数名称',
            prop: "attr_name"
        },
        {
            label: '操作',
            type: 'action',
            list: [{
                type: "primary",
                action: "edit",
                name: "编辑",
            },
            {
                type: "danger",
                action: "delete",
                name: "删除",
            }]
        }
    ]
} 